package cn.damai.search.mapper;

import cn.damai.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

	User getUserById(@Param(value = "id") Long id);

	List<User>	getUserListByMap(Map<String, Object> param);

	Integer getUserCountByMap(Map<String, Object> param);

	Integer insertUser(User user);

	Integer updateUser(User user);

	User checkLoginByPassword(@Param(value = "phone") String phone,@Param(value = "password") String password);

//	Integer deleteUserById(@Param(value = "id") Long id);
//
//	Integer batchDeleteUser(Map<String,List<String>> params);

}
